export default {
  getKey: function(key) {
    var val = localStorage.getItem(key);
    if (val) return JSON.parse(val);
    else return {};
  },
  setKey: function(key, val) {
    if (val) localStorage.setItem(key, JSON.stringify(val));
  },
  removeKey: function(key) {
    localStorage.removeItem(key);
  }
}
